<{if $detail.status == 0}>

    <!-- 团购未结束，需要展示动作-->
    <{if $timeLeftSeconds > 0 }>
    <div class="group-buy-footer">
        <{if $userJoinedTuan}>
            <div class="yaoqing">
                <p>还差<{$detail.wantPersons}>人组团成功</p>
                <p>去邀请好友来参团吧</p>
            </div>
        <{else}>
            <div class="yeyao">
                <div class="home-icon">
                    <img src="/resource/app/imgs/home_icon.png" alt="" class="img">
                </div>
                <div class="fenxiang-icon">
                     <img src="/resource/app/imgs/fenxiang_icon.png" alt="" class="img">
                </div>
                <div class="my-join" onclick="goods_show_buy_box('buyTuan', '确 认')">我也要参团</div>
            </div>
        <{/if}>
    </div>
    <{else}>
    <!-- 团购时间已结束，展示失败状态-->
    <div class="group-buy-footer">
            <div class="yeyao">
                <div class="home-icon">
                    <img src="/resource/app/imgs/home_icon.png" alt="" class="img">
                </div>
                <div class="my-join" onclick="window.location.assign('/')">团购失败，点此查看更多商品</div>
            </div>
    </div>
    <{/if}>

<{elseif $detail.status == 2}>
    <!-- 团购已失败-->
    <div class="group-buy-footer">
            <div class="yeyao">
                <div class="home-icon">
                    <img src="/resource/app/imgs/home_icon.png" alt="" class="img">
                </div>
                <div class="my-join" onclick="window.location.assign('/')">团购失败，点此查看更多商品</div>
            </div>
    </div>
<{else}>
    <!-- 团购已成功, 不需要动作-->
<{/if}>
